package com.example.yingjiguanli_demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.yingjiguanli_demo.pojo.LoginRequest;
import com.example.yingjiguanli_demo.pojo.Result;
import com.example.yingjiguanli_demo.pojo.UserRoleDTO;
import com.example.yingjiguanli_demo.pojo.Users;
import org.apache.poi.ss.formula.functions.T;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface UsersService extends IService<Users> {

    Result<T> login(LoginRequest loginRequest, HttpServletResponse response, HttpServletRequest request);

    Result<T> register(String username, String password, String email);

    Result<T> logout(HttpServletRequest request, HttpServletResponse response);

    Result<List<UserRoleDTO>> getAllUsers();

    Result<UserRoleDTO> getUserInfo(Long id);

    Result<T> passUser(Long userId);
}
